tmem: remove unneeded parameters from obj destroy path
authorBob Liu <lliubbo@gmail.com>
Tue, 28 Jan 2014 04:28:28 +0000 (12:28 +0800)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 9 Apr 2014 13:18:08 +0000 (09:18 -0400)
commit6e1616dcb8871356d192ff497e410e912edb99be
treef579745b0cfc2570e9ceb72705c85092a4aadc3a
parentb4db3b80e04a009ccd04551f5fe351d626796aab
tmem: remove unneeded parameters from obj destroy path

Parameters "selective" and "no_rebalance" are meaningless in obj
destroy path, this patch remove them. No place uses
no_rebalance=1. In the obj_destroy path we always call it with
no_balance=0.

Note that this will now free it only if:

   obj->last_client == cli_id

Which is OK - even if we allocate a non-shared pool we set by
default the obj->last_client to TMEM_CLI_ID_NULL so even if
the pool is never used, the pool_flush will take care of removing
those.

Signed-off-by: Bob Liu <bob.liu@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xen/common/tmem.c